-
Notifications
You must be signed in to change notification settings - Fork 76
Feat: Support creating warmed VM in the proxy wasm V8 VM API. #447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Rachel Green <rachgreen@google.com>
Signed-off-by: Rachel Green <rachgreen@google.com>
Looks like you need to add no-op implementations of |
Signed-off-by: Rachel Green <rachgreen@google.com>
Signed-off-by: Rachel Green <rachgreen@google.com>
Signed-off-by: Rachel Green <rachgreen@google.com>
FYI, there is already an open PR with support for warming VMs (including other engines and tests): #280 |
Thanks for pointing that out! I'd forgotten that existed. Looking at the two PR's I'd propose that we combine them together and "do both". As you point out, the benefit of #280 is that it provides init*Engine() impls for all engines. However, it does not instantiate So how about we combine the two PRs:
@rachgreen33 LMK if you'd like me to create a PR that does this, or if you'd prefer to update this one yourself. Thanks! |
Signed-off-by: Rachel Green <rachgreen@google.com>
Signed-off-by: Rachel Green <rachgreen@google.com>
Signed-off-by: Rachel Green <rachgreen@google.com>
Signed-off-by: Rachel Green <rachgreen@google.com>
Signed-off-by: Rachel Green <rachgreen@google.com>
@rachgreen33 I can rerun the workflows again, but it looks like "test with Wasmtime on Linux/s390x" is failing with:
Full results here. It might be necessary to adjust some of the time constants/multipliers in the new TestVm.Init test case, at least for that platform. |
Signed-off-by: Rachel Green <rachgreen@google.com>
@@ -21,6 +21,7 @@ | |||
|
|||
namespace proxy_wasm { | |||
|
|||
bool initV8Engine(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It appears that init*Engine()
calls are never used (outside of the tests verifying that it works), and instead warm()
always calls initStore()
, so it's unclear if this is ever used or if it's a bad copy & paste from #280?
auto time1 = std::chrono::steady_clock::now(); | ||
if (engine_ == "v8") { | ||
#if defined(PROXY_WASM_HOST_ENGINE_V8) | ||
EXPECT_TRUE(proxy_wasm::initV8Engine()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably verify warm()
or initStore()
functions and not init*Engine()
?
No description provided.